﻿@*#if (IndividualLocalAuth && !UseWebAssembly)
@using BlazorWeb_CSharp.Components.Account.Shared
##endif*@
@*#if (UseWebAssembly && !InteractiveAtRoot)
<Router AppAssembly="@typeof(Program).Assembly" AdditionalAssemblies="new[] { typeof(Client._Imports).Assembly }">
##else
<Router AppAssembly="@typeof(Program).Assembly">
##endif*@
    <Found Context="routeData">
        @*#if (IndividualLocalAuth)
        <AuthorizeRouteView RouteData="@routeData" DefaultLayout="@typeof(Layout.MainLayout)">
            <NotAuthorized>
                <RedirectToLogin />
            </NotAuthorized>
        </AuthorizeRouteView>
        ##else
        <RouteView RouteData="@routeData" DefaultLayout="@typeof(Layout.MainLayout)" />
        ##endif*@
        <FocusOnNavigate RouteData="@routeData" Selector="h1" />
    </Found>
</Router>
